package com.lazyfish.ioc;

public class UserServiceImpl implements UserService {
    //声明属性
    private UserDao userDao;
    //依赖注入
    public void setUserDao(UserDao userDao){
        this.userDao  =  userDao;
    }
    public void  say(){
        this.userDao.say();
    }
}
